import Vue from "vue";
import Router from "vue-router";
import Home from "@/page/Home";
import Dashbord from "@/page/dashbord/index";
import UserManager from "@/page/people/user";
import UserDetail from "@/page/people/userDetail";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      redirect: "/dashbord",
      component: Home,
      children: [
        {
          path: "/dashbord",
          name: "dashbord",
          component: Dashbord
        },
        {
          path: "/users",
          name: "users",
          component: UserManager
        },
        {
          path: "/users/detail",
          name: "userDetail",
          component: UserDetail
        }
        
      ]
    }
  ]
});
